package tt.dz.mvc.model;

import tt.dz.entity.system.OmsOperList;
import tt.dz.util.annotation.PrimaryKey;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

public class UpdateUserModel implements Serializable
{
	private String account;
	private String company;
	private String create_ms_user_id;
	private String create_oper_id;
	private String department;
	private String email;
	private String entity_id;
	private String entity_name;
	private String id_card;
	private String isSupper;
	private String loginResult;
	private String ms_manager_id;
	private String oper_id;
	private String oper_name;
//	private String password;
//	private String phone_no;
	private String powerUrls;
	private String roleId;
	private String storeFiles;
	private String storeIds;
	private String user_card;
	private String user_type;

	private int entity_type;
	private long create_time;
	private int status;
	private long last_time;
	private int auth_range;
	private int valid_flag;

	public OmsOperList generateOmsOperList()
	{
		OmsOperList oper = new OmsOperList();
		oper.setAccount(getAccount());
		oper.setCompany(getCompany());
		oper.setCreate_ms_user_id(getCreate_ms_user_id());
		oper.setCreate_oper_id(getCreate_oper_id());
		oper.setDepartment(getDepartment());
		oper.setEmail(getEmail());
		oper.setEntity_id(getEntity_id());
		oper.setEntity_name(getEntity_name());
		oper.setId_card(getId_card());
		oper.setMs_manager_id(getMs_manager_id());
		oper.setOper_id(getOper_id());
		oper.setOper_name(getOper_name());
//		oper.setPassword(getPassword());
		oper.setPhone_no(getAccount());
		oper.setUser_card(getUser_card());
		oper.setUser_type(getUser_type());
		oper.setEntity_type(getEntity_type());

		Date c = new Date();
		c.setTime(getCreate_time());
		oper.setCreate_time(c);
		oper.setStatus(getStatus());

		Date l = new Date();
		l.setTime(getLast_time());
		oper.setLast_time(l);

		oper.setAuth_range(getAuth_range());
		oper.setValid_flag(getValid_flag());
		return oper;
	}

	public String getAccount()
	{
		return account;
	}

	public void setAccount(String account)
	{
		this.account = account;
	}

	public String getCompany()
	{
		return company;
	}

	public void setCompany(String company)
	{
		this.company = company;
	}

	public String getCreate_ms_user_id()
	{
		return create_ms_user_id;
	}

	public void setCreate_ms_user_id(String create_ms_user_id)
	{
		this.create_ms_user_id = create_ms_user_id;
	}

	public String getCreate_oper_id()
	{
		return create_oper_id;
	}

	public void setCreate_oper_id(String create_oper_id)
	{
		this.create_oper_id = create_oper_id;
	}

	public String getDepartment()
	{
		return department;
	}

	public void setDepartment(String department)
	{
		this.department = department;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getEntity_id()
	{
		return entity_id;
	}

	public void setEntity_id(String entity_id)
	{
		this.entity_id = entity_id;
	}

	public String getEntity_name()
	{
		return entity_name;
	}

	public void setEntity_name(String entity_name)
	{
		this.entity_name = entity_name;
	}

	public String getId_card()
	{
		return id_card;
	}

	public void setId_card(String id_card)
	{
		this.id_card = id_card;
	}

	public String getIsSupper()
	{
		return isSupper;
	}

	public void setIsSupper(String isSupper)
	{
		this.isSupper = isSupper;
	}

	public String getLoginResult()
	{
		return loginResult;
	}

	public void setLoginResult(String loginResult)
	{
		this.loginResult = loginResult;
	}

	public String getMs_manager_id()
	{
		return ms_manager_id;
	}

	public void setMs_manager_id(String ms_manager_id)
	{
		this.ms_manager_id = ms_manager_id;
	}

	public String getOper_id()
	{
		return oper_id;
	}

	public void setOper_id(String oper_id)
	{
		this.oper_id = oper_id;
	}

	public String getOper_name()
	{
		return oper_name;
	}

	public void setOper_name(String oper_name)
	{
		this.oper_name = oper_name;
	}

//	public String getPassword()
//	{
//		return password;
//	}
//
//	public void setPassword(String password)
//	{
//		this.password = password;
//	}

//	public String getPhone_no()
//	{
//		return phone_no;
//	}
//
//	public void setPhone_no(String phone_no)
//	{
//		this.phone_no = phone_no;
//	}

	public String getPowerUrls()
	{
		return powerUrls;
	}

	public void setPowerUrls(String powerUrls)
	{
		this.powerUrls = powerUrls;
	}

	public String getRoleId()
	{
		return roleId;
	}

	public void setRoleId(String roleId)
	{
		this.roleId = roleId;
	}

	public String getStoreFiles()
	{
		return storeFiles;
	}

	public void setStoreFiles(String storeFiles)
	{
		this.storeFiles = storeFiles;
	}

	public String getStoreIds()
	{
		return storeIds;
	}

	public void setStoreIds(String storeIds)
	{
		this.storeIds = storeIds;
	}

	public String getUser_card()
	{
		return user_card;
	}

	public void setUser_card(String user_card)
	{
		this.user_card = user_card;
	}

	public String getUser_type()
	{
		return user_type;
	}

	public void setUser_type(String user_type)
	{
		this.user_type = user_type;
	}

	public int getEntity_type()
	{
		return entity_type;
	}

	public void setEntity_type(int entity_type)
	{
		this.entity_type = entity_type;
	}

	public int getStatus()
	{
		return status;
	}

	public void setStatus(int status)
	{
		this.status = status;
	}


	public int getAuth_range()
	{
		return auth_range;
	}

	public void setAuth_range(int auth_range)
	{
		this.auth_range = auth_range;
	}

	public int getValid_flag()
	{
		return valid_flag;
	}

	public void setValid_flag(int valid_flag)
	{
		this.valid_flag = valid_flag;
	}

	public long getCreate_time()
	{
		return create_time;
	}

	public void setCreate_time(long create_time)
	{
		this.create_time = create_time;
	}

	public long getLast_time()
	{
		return last_time;
	}

	public void setLast_time(long last_time)
	{
		this.last_time = last_time;
	}
}